POV-Ray : Newsgroups : povray.general : Convert strings to arrays? : Re: Convert strings to arrays? Server Time
30 Jul 2024 04:14:05 EDT (-0400)
  Re: Convert strings to arrays?  
From: SharkD
Date: 28 Oct 2009 22:26:46
Message: <4ae8fd66$1@news.povray.org>
On 10/28/2009 7:21 AM, Chris B wrote:
> I don't remember seeing a standard function, but it's quick to split a
> string with the existing POVRay functions and a #while loop (see the 2
> examples below).
>
> If you want more sophisticated processing you'll find some macros in the
> Scroll include file from the Object Collection that can left, right,
> centre or full justify text strings.
>
> Note that the examples below write the strings to the message stream and
> produce only a completely black image.
>
> Regards,
> Chris B.

Nice tip, thanks!

Next question: How do I modify a one character text object such that the 
character fits inside a 1x1x1 cube? (Note that I am working only with 
single character strings, so I don't have to worry about what happens 
with larger strings.)

Mike


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.